package com.fuluwa.domain.category.json;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.annotation.JSONType;

@JSONType(orders = { "pcid", "cid", "name", "list" })
public class CategoryVO {
	@JSONField(name="sd")
	private int pcid;
	private int cid;
	private String name;
	private List<CategoryVO> list = new ArrayList<CategoryVO>();

	public CategoryVO() {
	}

	public int getPcid() {
		return pcid;
	}

	public void setPcid(int pcid) {
		this.pcid = pcid;
	}

	public int getCid() {
		return cid;
	}

	public void setCid(int cid) {
		this.cid = cid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<CategoryVO> getList() {
		return list;
	}

	public void setList(List<CategoryVO> list) {
		this.list = list;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

}
